package com.singlemountain.gcommerce.domain.image;

import com.singlemountain.gcommerce.domain.base.Base;
import javax.persistence.Lob;
import javax.persistence.Transient;

import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.tostring.RooToString;
import org.springframework.roo.classpath.operations.jsr303.RooUploadedFile;

@RooJavaBean
@RooToString
@RooJpaActiveRecord
public class Imaged extends Base {

    @RooUploadedFile(contentType = "image/jpeg", autoUpload = true)
    @Lob
    private byte[] big;

    @RooUploadedFile(contentType = "image/jpeg", autoUpload = true)
    @Lob
    private byte[] small;

    @RooUploadedFile(contentType = "image/jpeg", autoUpload = true)
    @Lob
    private byte[] middle;

    private Boolean defaultImage;

    @Transient
    private  String middleUrl;
    @Transient
    private  String bigUrl;
    @Transient
    private  String smaillUrl;


}
